#ifndef CLIENT_H
#define CLIENT_H
#include "common.h"


#define CERTF  "CAcertifity/client.crt"  
#define KEYF  "CAcertifity/client.key" 
#define CACERT "CAcertifity/cacert.crt"    
#define PORT   4422         
#define SERVER_ADDR "127.0.0.1"

SSL_CTX* ctx;
int password_callback(char *buf,int size,int rwflag,void * userdata);
int verify_callbackf(int n,X509_STORE_CTX * x);
void SSL_init();
int SSL_CTX_set_params();
int tcp_connect();
SSL* SSL_set_sd(int sd);
int verify_certificate(SSL * ssl);
void ssl_write(void *arg);
void ssl_read_write(SSL *ssl,int sd);
static void sigpipe_handle(int x);



#endif
